From 168523264c49c49923ade5cc3ed2211854133a8e Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 15 Jul 2018 16:50:06 -0400 Subject: [PATCH] x11: Set actions on drag We should pass the actions to the newly created drag object in drag_begin. --- gdk/x11/gdkdrag-x11.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gdk/x11/gdkdrag-x11.c b/gdk/x11/gdkdrag-x11.c index b04b77c596..6e72ba890c 100644 --- a/gdk/x11/gdkdrag-x11.c +++ b/gdk/x11/gdkdrag-x11.c @@ -2085,9 +2085,10 @@ _gdk_x11_surface_drag_begin (GdkSurface *surface, ipc_surface = gdk_surface_new_popup (display, &(GdkRectangle) { -99, -99, 1, 1 }); drag = (GdkDrag *) g_object_new (GDK_TYPE_X11_DRAG, + "surface", ipc_surface, "device", device, "content", content, - "surface", ipc_surface, + "actions", actions, NULL); x11_drag = GDK_X11_DRAG (drag); -- 2.30.2